﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
  <head>
  	
  	<%@ include file="/WEB-INF/include/meta.jsp" %>
  	<%@ include file="/WEB-INF/include/css.jsp" %>
  	<link href="${ctx.resource}/css/font-awesome.min.css" rel="stylesheet">
  	<link href="${ctx.resource}/css/bootstrap-select.min.css" rel="stylesheet">
	
	<title>众投湾</title>
	
	<fmt:setBundle basename="ApplicationMessage"/>
	<fmt:setLocale value="zh_CN"/>
	
  </head>

  <body>
  
	<%@ include file="/WEB-INF/include/header.jsp" %>
	
	<div class="container clearfix zz-startups">
      <div class="zz-narrow-wrapper">
        
        <div class="zz-narrow-head bottom-padding-10 clearfix">
          <a href="#">返回个人主页</a>
        </div>
        
        <div class="zz-narrow-content clearfix">
          
          <div class="narrow-nav">
            <div class="list-group no-bottom-margin">
              <a href="#" class="list-group-item active">
                <i class="fa fa-user fa-2x"></i>个人资料
              </a>
              <a href="#" class="list-group-item">
                <i class="fa fa-yen fa-2x"></i>投资信息
              </a>
              <a href="#" class="list-group-item">
                <i class="fa fa-camera-retro fa-2x"></i>头像修改
              </a>
              <a href="#" class="list-group-item">
                <i class="fa fa-shield fa-2x"></i>隐私设置
              </a>
              <a href="#" class="list-group-item">
                <i class="fa fa-unlock fa-2x"></i>密码修改
              </a>
            </div>
          </div>
          
          <div class="narrow-box">
            
            <form class="form-horizontal narrow-box-inner" method="POST" action="${ctx}/profile">
			  <input type="hidden" name="_method" value="PATCH" />
              
              <div class="form-group">
                <label class="control-label col-xs-3 text-align-right">姓名</label>
                <div class="col-xs-6">
                  <input type="text" name="name" value="${currentPrincipal.profile.name}" class="form-control" placeholder="姓名">
                </div>
              </div>
               
              <div class="form-group">
                <label class="control-label col-xs-3 text-align-right">邮箱</label>
                <div class="col-xs-6">
                  <input type="text" name="email" value="${currentPrincipal.profile.email}" class="form-control" disabled>
                </div>
              </div>
             
              <div class="form-group">
                <label class="control-label col-xs-3 text-align-right">地区</label>
                <div class="col-xs-6">
                  <input type="text" name="region" value="${currentPrincipal.profile.region}" class="form-control" placeholder="地区">
                </div>
              </div>
              
              <div class="form-group">
                <label class="control-label col-xs-3 text-align-right">手机</label>
                <div class="col-xs-6">
                  <input type="text" name="phone" value="${currentPrincipal.profile.phone}" class="form-control" placeholder="手机">
                </div>
              </div>
             
              <div class="form-group">
                <label class="control-label col-xs-3 text-align-right">个人简介</label>
                <div class="col-xs-6">
                  <textarea name="description" rows="5" class="form-control">${currentPrincipal.profile.description}</textarea>
                </div>
              </div>
              
              <div class="form-group">
                <div class="col-xs-offset-3 col-xs-6">
                  <button type="submit" class="btn btn-success btn-shadow btn-shadow-success">保&nbsp;&nbsp;存</button>
                </div>
              </div>
              
            </form>
            
          </div>
          
        </div>
              
      </div>
	</div>
	
	<%@ include file="/WEB-INF/include/footer.jsp" %>
	<%@ include file="/WEB-INF/include/script.jsp" %>
	<script src="${ctx.resource}/js/bootstrap-select.js"></script>
	
	<script>
	  
	  $(function() {
		$('.selectpicker').selectpicker();
	  });
	  
	</script>
    
  </body>
  
</html>
